﻿<%@ Page Title="View Car Capactiy" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master"
    AutoEventWireup="true" CodeFile="ViewProviderProposalSummaryReport.aspx.cs" Inherits="Provider_CarInsurance_ViewProviderProposalSummaryReport" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="contents">
        <table width="100%" cellpadding="3" cellspacing="0" border="0">
            <tr>
                <td>
                    <h1>CX Proposal Summary</h1>
                </td>
            </tr>
            <tr>
                <td>
                    <b>Provider Company</b> :
                    <asp:DropDownList ID="ddlProviderCompany" runat="server">
                    </asp:DropDownList>
                    <b>Form Type</b> :
                    <asp:DropDownList ID="ddlTransType" runat="server">
                        <asp:ListItem Value="ALL">All</asp:ListItem>
                        <asp:ListItem Value="CI">Car Insurance</asp:ListItem>
                        <asp:ListItem Value="HL">Home Loan</asp:ListItem>
                        <asp:ListItem Value="CC">Credit Card</asp:ListItem>
                        <asp:ListItem Value="PA">Personal Accident</asp:ListItem>
                        <asp:ListItem Value="PL">Personal Loan</asp:ListItem>
                        <asp:ListItem Value="TA">Travel Insurance</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;<b>Date</b> :<asp:DropDownList ID="ddlYear" runat="server">
                        <asp:ListItem Value="0000">All</asp:ListItem>
                        <asp:ListItem Value="2010">2010</asp:ListItem>
                        <asp:ListItem Value="2011">2011</asp:ListItem>
                        <asp:ListItem Value="2012">2012</asp:ListItem>
                        <asp:ListItem Value="2013">2013</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlMonth" runat="server">
                        <asp:ListItem Value="00">All</asp:ListItem>
                        <asp:ListItem Value="01">Jan</asp:ListItem>
                        <asp:ListItem Value="02">Feb</asp:ListItem>
                        <asp:ListItem Value="03">Mar</asp:ListItem>
                        <asp:ListItem Value="04">Apr</asp:ListItem>
                        <asp:ListItem Value="05">May</asp:ListItem>
                        <asp:ListItem Value="06">Jun</asp:ListItem>
                        <asp:ListItem Value="07">Jul</asp:ListItem>
                        <asp:ListItem Value="08">Aug</asp:ListItem>
                        <asp:ListItem Value="09">Sep</asp:ListItem>
                        <asp:ListItem Value="10">Oct</asp:ListItem>
                        <asp:ListItem Value="11">Nov</asp:ListItem>
                        <asp:ListItem Value="12">Dec</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlDay" runat="server" ToolTip="Choose Day">
                        <asp:ListItem Value="00">All</asp:ListItem>
                        <asp:ListItem Value="01">01</asp:ListItem>
                        <asp:ListItem Value="02">02</asp:ListItem>
                        <asp:ListItem Value="03">03</asp:ListItem>
                        <asp:ListItem Value="04">04</asp:ListItem>
                        <asp:ListItem Value="05">05</asp:ListItem>
                        <asp:ListItem Value="06">06</asp:ListItem>
                        <asp:ListItem Value="07">07</asp:ListItem>
                        <asp:ListItem Value="08">08</asp:ListItem>
                        <asp:ListItem Value="09">09</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                        <asp:ListItem>13</asp:ListItem>
                        <asp:ListItem>14</asp:ListItem>
                        <asp:ListItem>15</asp:ListItem>
                        <asp:ListItem>16</asp:ListItem>
                        <asp:ListItem>17</asp:ListItem>
                        <asp:ListItem>18</asp:ListItem>
                        <asp:ListItem>19</asp:ListItem>
                        <asp:ListItem>20</asp:ListItem>
                        <asp:ListItem>21</asp:ListItem>
                        <asp:ListItem>22</asp:ListItem>
                        <asp:ListItem>23</asp:ListItem>
                        <asp:ListItem>24</asp:ListItem>
                        <asp:ListItem>25</asp:ListItem>
                        <asp:ListItem>26</asp:ListItem>
                        <asp:ListItem>27</asp:ListItem>
                        <asp:ListItem>28</asp:ListItem>
                        <asp:ListItem>29</asp:ListItem>
                        <asp:ListItem>30</asp:ListItem>
                        <asp:ListItem>31</asp:ListItem>
                    </asp:DropDownList>
                    Is Complete :
                    <asp:DropDownList ID="ddlStatus" runat="server">
                        <asp:ListItem Value="0">All</asp:ListItem>
                        <asp:ListItem Value="1">Complete</asp:ListItem>
                        <asp:ListItem Value="2">InComplete</asp:ListItem>
                    </asp:DropDownList>
                    <div style="display: none">
                        <asp:TextBox ID="txtModifiedDate" runat="server"></asp:TextBox></div>
                    <%--<b>Who</b> :
                    <asp:DropDownList ID="ddlProviderName" runat="server" OnSelectedIndexChanged="ddlProviderName_SelectedIndexChanged"
                        AutoPostBack="True">
                    </asp:DropDownList>
                    <div style="display: none">
                        <asp:DropDownList ID="ddlProviderId" runat="server">
                        </asp:DropDownList>
                    </div>
                    <asp:Label ID="lblProviderEmailAddress" runat="server"></asp:Label>--%>
                    &nbsp;<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Refresh Result" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="grvProposalSummary" runat="server" AllowPaging="True" AllowSorting="True"
                    PageSize="30" AutoGenerateColumns="False" Cellspacing="3" CellPadding="3" Width="100%" CssClass="admin_gridstyle" PagerStyle-CssClass="pgr" 
                    EmptyDataText="There are no data records to display." GridLines="None" DataSourceID="sqlDsProposalSummarySummary"
                    DataKeyNames="ProposalFormSummaryID" OnRowDataBound="grvProposalSummary_RowDataBound">
                    <Columns>
                        <asp:BoundField Visible="false" DataField="ProposalFormSummaryID" HeaderText="ProposalFormSummaryID"
                            ReadOnly="True" SortExpression="ProposalFormSummaryID" InsertVisible="False" />
                        <asp:BoundField Visible="false" DataField="FormType" HeaderText="FormType" SortExpression="FormType" />
                        <asp:BoundField DataField="CompanyName" HeaderText="Company Name" SortExpression="CompanyName" />
                        <asp:BoundField DataField="FormTypeDesc" HeaderText="Form Type" SortExpression="FormTypeDesc" />
                        <asp:BoundField DataField="FormCount" HeaderText="Count" SortExpression="FormCount" />
                        <asp:BoundField DataField="ProviderCompanyId" Visible="false" HeaderText="ProviderCompanyId"
                            SortExpression="ProviderCompanyId" />
                        <asp:BoundField DataField="RefCEUserId" Visible="false" HeaderText="RefCEUserId"
                            SortExpression="RefCEUserId" />
                        <asp:TemplateField HeaderText="Detail">
                            <ItemTemplate>
                                <asp:HyperLink runat="server" ID="hplViewDetail" Text="View"></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle />
                    <PagerStyle />
                    <SelectedRowStyle />
                    <HeaderStyle CssClass="admin_gridheader" />
                    <EditRowStyle />
                    <AlternatingRowStyle CssClass="admin_gridodd" />
                    <RowStyle CssClass="admin_grideven" />
                </asp:GridView>
                <asp:SqlDataSource ID="sqlDsProposalSummarySummary" runat="server" ConnectionString="<%$ ConnectionStrings:CX_DBConnectionString %>"
                    SelectCommand="sprocProviderProposalSummaryCountReportSelectItemList" SelectCommandType="StoredProcedure">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="ddlProviderCompany" Name="ProviderCompanyId" PropertyName="SelectedValue"
                            Type="Int64" />
                        <asp:ControlParameter ControlID="ddlTransType" Name="FormType" PropertyName="SelectedValue"
                            Type="String" />
                        <asp:ControlParameter ControlID="ddlStatus" Name="IsComplete" PropertyName="SelectedValue"
                            Type="Int16" />
                        <asp:ControlParameter ControlID="txtModifiedDate" Name="SelectedDate" PropertyName="Text"
                            Type="String" />
                        <asp:SessionParameter Name="RefCEUserId" SessionField="UserId" Type="Int64" />
                    </SelectParameters>
                </asp:SqlDataSource>
                <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                    ID="ibtBack" runat="server" ImageUrl="~/Provider/images/buttons/back1.gif" OnClick="ibtBack_Click" />
                </td>
            </tr>
        </table>
   </div>
</asp:Content>
